package com.ebring.shareEducation.dao;


import com.ebring.shareEducation.bean.Taskrelease;
import com.ebring.shareEducation.bean.response.ReleaseUser;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface TaskreleaseMapper extends Mapper<Taskrelease> {

    // 根据条件查询任务
    ReleaseUser selectUTaskrelease(@Param("taskrelease")Taskrelease taskrelease);
    // 根据任务状态查询
    Taskrelease selectByStates(@Param("taskStates")String taskStates);

    //手机端任务查询，根据加紧情况
    List<Taskrelease> selectTaskRelease();//手机端任务查询，根据加紧情况
    //首页用
    List<Taskrelease> selectTaskReleaseIndex(int i);
    List<ReleaseUser> selectTaskrelease(@Param("phone")String phone,@Param("auditStates")String auditStates);

    ReleaseUser selectByTaskIdTaskRelease(@Param("taskrelease")Taskrelease taskrelease);

    ReleaseUser selectTaskreleases(@Param("taskrelease")Taskrelease taskrelease);
    ReleaseUser selectByTaskIdTaskRelease1(@Param("taskrelease")Taskrelease taskrelease);
    Taskrelease selectTaskByTaskId(String taskId);
}


